package com.zmn.plat.persistence.interfaces.channel;

import com.zmn.plat.model.entity.channel.ChannelDnis;
import com.zmn.plat.model.entity.channel.ChannelDnisQuery;

import java.util.List;

/**
 * BaseChannelDAO继承基类
 *
 * @author tanghongjun
 */
public interface ChannelDnisDAO {

    /**
     * 描述: 根据查询条件查询
     *
     * @param query
     * @return: List<ChannelDnis>
     * @auther: tanghongjun
     * @since: 2018/10/15 16:41
     */
    List<ChannelDnis> listByQuery(ChannelDnisQuery query);

    /**
     * 描述: 从旧渠道复制到新渠道
     *
     * @param originalChannelId 原渠道ID
     * @param targetChannelId 新渠道ID
     * @param operator 操作者
     * @return java.lang.Boolean
     * @author guoqiao
     * @since 2021/6/8 13:49
     */
    void copy(Integer originalChannelId, int targetChannelId, String operator);
}